home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / windows5 / v11n18.zip / WTIME.ZIP / WTISRC.ZIP / WTIME.H < prev    next >
C/C++ Source or Header  |  1992-10-27  |  4KB  |  122 lines

  1. #include <windows.h>
  2. #include <string.h>
  3. #define IDM_FILE                  1000
  4. #define IDM_F_EXIT                1050
  5. #define IDM_MODEM                 2000
  6. #define IDM_M_SETUP               2050
  7. #define IDM_M_CALL                2100
  8. #define IDM_M_HANGUP              2150
  9. #define IDM_HELP                  3000
  10. #define IDM_H_PROCEDURES          3050
  11. #define IDM_H_USINGHELP           3100
  12. #define IDM_H_ABOUTWTIME          3200
  13. #define IDM_CMD_CALLDONE          6000
  14. #define IDM_CMD_DIALTIME          6001
  15. #define IDM_CMD_WAITDATA          6002
  16. #define IDM_CMD_PREBREAK          6003
  17. #define IDM_CMD_POSTBREAK         6004
  18. #define IDM_CMD_CALLQUIT          6005
  19. #define IDM_CMD_AT_CMD            6006
  20. #define IDM_CMD_FIRST_ESCAPE      6007
  21. #define IDC_SETUPDLG_TIMEZONE      211
  22. #define IDC_SETUPDLG_DAYLIGHT      212
  23. #define IDC_SETUPDLG_DIALSTRING    213
  24. #define IDC_SETUPDLG_COM1          214
  25. #define IDC_SETUPDLG_COM2          215
  26. #define IDC_SETUPDLG_COM3          216
  27. #define IDC_SETUPDLG_COM4          217
  28. #define IDC_SETUPDLG_DEFAULTS      218
  29. #define IDC_SETUPDLG_HELPBUTTON    219
  30. #define IDC_SETUPDLG_HELP          220
  31. #define IDS_ERR_REGISTER_CLASS       1
  32. #define IDS_ERR_CREATE_WINDOW        2
  33. #define IDS_ERR_MULT_INSTANCES       3
  34. #define IDS_ABOUT_CAPTION            4
  35. #define IDS_MODEM_DIALSTRING         5
  36. #define TZOFF_EST                 -300
  37. #define TZOFF_CST                 -360
  38. #define TZOFF_MTN                 -420
  39. #define TZOFF_PST                 -480
  40. #define HLP_WTIME_MEXIT           1001
  41. #define HLP_WTIME_MSETUP          1002
  42. #define HLP_WTIME_MCALL           1003
  43. #define HLP_WTIME_MPROCS          1004
  44. #define HLP_WTIME_MUSING          1005
  45. #define HLP_WTIME_MABOUT          1006
  46. #define HLP_WTIME_SDPORTS         1007
  47. #define HLP_WTIME_SDDAYLT         1008
  48. #define HLP_WTIME_SDDIALSTR       1009
  49. #define HLP_WTIME_SDTIMZON        1010
  50. #define HLP_WTIME_SDRESTDEF       1011
  51. #define HLP_WTIME_SDSAVCNF        1012
  52. #define HLP_WTIME_SDCANCEL        1013
  53. #define HLP_WTIME_SDHELP          1014
  54. #define HLP_WTIME_MHANGUP         1015
  55. #define TIMER_TOTAL_CALLTIME        75
  56. #define TIMER_TARGET_INACTIVE       -1  /* time you'll never hit */
  57. #define TIMER_NEVER_POST             0  /* cmd never to issue */
  58. #define TIMER_FIRST_ESCAPE           3
  59. #define TIMER_AT_CMD                 3
  60. #define TIMER_FIRST_RESET            3
  61. #define TIMER_DIAL                   3
  62. #define TIMER_PREBREAK               3
  63. #define TIMER_POSTBREAK              3
  64. typedef struct{
  65.     char special;
  66.     char crlf;
  67.     char mjd[5];
  68.     char junk1;
  69.     char year[2];
  70.     char dash1;
  71.     char month[2];
  72.     char dash2;
  73.     char day[2];
  74.     char junk2;
  75.     char hour[2];
  76.     char colon1;
  77.     char minute[2];
  78.     char colon2;
  79.     char second[2];
  80.     char junk3[26];
  81.     char special2;
  82. }
  83. NISTDATA;
  84. char szDisplayString[100],szDisplayString2[115];
  85. char szString[256];
  86. char szString2[256];
  87. char szAppName[20];                             /* class name for the window */
  88. char szModemDialString[80];
  89. char szFailString[100];
  90. char szCommError[256];
  91. char szHelpFile[20];
  92. int iTimeOffset,iUseDaylightSavings,iComPort,iReadyToGo,iInHelp;
  93. int iAutomatic=0,iThisRunFailed=1,iTimerCount=0,iHaveTimer=0,iInCall=0;
  94. int iGotComPort=0,iWroteStatus=0,iTargetTime,iMustHangUp,iCleaningUp=0;
  95. int iRowHeight;
  96. WORD wTimedTargetCmdToPost,wEachSecondCmdToPost;
  97. DWORD iEst,iCst,iMtn,iPst,iOther;
  98. HWND hInst;
  99. HWND hWndMain,hWndSetupDlg;
  100. HMENU hMainMenu;
  101. FARPROC oldfilter=NULL;
  102. DCB dcb;
  103. COMSTAT comstat;
  104. void cwCenter(HWND,int);
  105. LONG FAR PASCAL WndProc(HWND,WORD,WORD,LONG);
  106. BOOL FAR PASCAL CONFIGMsgProc(HWND,WORD,WORD,LONG);
  107. BOOL FAR PASCAL ABOUTMsgProc(HWND,WORD,WORD,LONG);
  108. int nCwRegisterClasses(void);
  109. void CwUnRegisterClasses(void);
  110. void SetCallOption(void);
  111. int iGetConfigurationInformation(void);
  112. int iSetConfigurationInformation(void);
  113. DWORD FAR PASCAL SetupDlgMsgHook(int nCode,WORD wParam,LPMSG lpMsg);
  114. void UpdateStatusLine(void);
  115. void UpdateStatusLineText(LPSTR string);
  116. LPSTR init_comm_port(void);
  117. void close_comm_port(void);
  118. void FailCall(LPSTR failure);
  119. void WaitSecondsCommand(int seconds,WORD command);
  120. WORD MyGetProfileInt(LPSTR lpAppName,LPSTR lpKeyName,int nDefault);
  121. int GetDisplayCommError(int nCid,COMSTAT FAR *lpStat);
  122.